/**
 * Created by H on 2017/8/4.
 */


var  w = document.documentElement.clientWidth;
var L = w > 1024 ? (w - 1024) / 2 : 0;

var _LoadingHtml = '<div id="loadDiv" style=" width:1024px;height:680px;left:'+L+'px;top:0px;position: absolute;background: #FFF;z-index: 200;"> <img src="img/loading.gif"style="position: absolute; width: 40px; min-height: 40px; left: 497px; top: 195px;"> </div>';

document.write(_LoadingHtml);

document.onreadystatechange = function(){
    if (document.readyState == "complete") {
        var loading = document.getElementById('loadDiv');
        loading.parentNode.removeChild(loading);
    }
}

